package com.smbms.log;

import com.alibaba.druid.support.json.JSONUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
import org.w3c.dom.ls.LSOutput;

import java.lang.reflect.Array;

@Component
@Aspect
public class WriterLogger {


    @Pointcut("execution(* com.smbms.service..*.*(..))")
    public void poincut() {
    }

    @Before("poincut()")
    public void beforeMethod(JoinPoint jp) {
        System.out.println("前置日志！执行了" + jp.getSignature());


    }
    @After("poincut()")
    public void afterMethod() {
        System.out.println("后置增强");
    }


}
